package com.cjx.mybatisdataauth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjx.mybatisdataauth.anno.DataAuth;
import com.cjx.mybatisdataauth.domain.ResourceEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author cjunxian
 * @description 资源Mapper
 * @date 2022/3/13
 */
@Mapper
public interface ResourceMapper extends BaseMapper<ResourceEntity> {

    /**
     * 分页查询
     * @param page
     * @return
     */
    @DataAuth(name = "USERANDDEPT")
    List<ResourceEntity> findAll(Page<ResourceEntity> page);

}
